package com.wanhe.base.model.holder;

import com.wanhe.base.model.disgn.PageViewModel;

import java.util.HashMap;

/**
 * File Name:CustomPageHolder.java<br/>
 * Package Name:com.wanhe.base.model.holder<br/>
 * Date:2017/7/13 19:17<br/>
 * author:chendeji<br/>
 * desc: 用于缓存特殊页面数据的缓存类<br/>
 * Copyright (c) 2017/7/13, 781571323@qq.com All Rights Reserved.
 *
 */
public class CustomPageHolder extends HashMap<Integer, PageViewModel>{
    private static CustomPageHolder ourInstance;

    public static CustomPageHolder getInstance() {
        if (ourInstance == null){
            synchronized (CustomPageHolder.class){
                if (ourInstance == null){
                    ourInstance = new CustomPageHolder();
                }
            }
        }
        return ourInstance;
    }

    private CustomPageHolder() {
    }
}
